package com.lxp.userms.service;

import com.lxp.userms.entity.ExpertAnswer;

import java.util.List;

public interface ExpertAnswerService {
    int askQuestion(ExpertAnswer answer);
    List<ExpertAnswer> getAllAnswers();
    List<ExpertAnswer> getAnswersByUserId(int userId);
    List<ExpertAnswer> getAnswersByExpertId(int expertId);
    int replyToQuestion(ExpertAnswer answer);
    int insertNewAnswer(ExpertAnswer answer);
    ExpertAnswer getAnswerByQuestionId(int questionId);
    int deleteAnswersByQuestionId(int questionId);

}